package com.itheima.a06threadmethod3;



public class ThreadDemo {
    public static void main(String[] args) {
        //守护线程，当非守护线程运行结束后，守护线程也会陆续结束
        MyThread1 t1=new MyThread1();
        MyThread2 t2=new MyThread2();

        t1.setName("女神");
        t2.setName("备胎");

        t2.setDaemon(true);

        t1.start();
        t2.start();
    }
}
